package com.cjw.campus.system.service.impl;

import com.cjw.campus.system.entity.TeacherTable;
import com.cjw.campus.system.mapper.TeacherTableMapper;
import com.cjw.campus.system.service.ITeacherTableService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cjw.campus.system.vo.TeacherTableVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 教师表 服务实现类
 * </p>
 *
 * @author cjw
 * @since 2023-02-28
 */
@Service
public class TeacherTableServiceImpl extends ServiceImpl<TeacherTableMapper, TeacherTable> implements ITeacherTableService {

    @Override
    public TeacherTableVO listByTeacherInfo(String teacherName, Integer phone, String subjectName) {
        return baseMapper.listByTeacherInfo(teacherName, phone, subjectName);
    }

    @Override
    public List<TeacherTableVO> listByTeacherAndSubjectID(Integer subjectId) {
        return baseMapper.listByTeacherAndSubjectID(subjectId);
    }
}
